from script.get_user_info.response.vjudge_response import vj_response
from bs4 import BeautifulSoup

# 得到 vjudge的solve_problem_number
def vj_problem_number(uid):
    html_content = vj_response(uid)
    soup = BeautifulSoup(html_content, 'html.parser')
    elements = soup.select('a[title="Overall solved"]')
    return elements[0].get_text()

if __name__ == '__main__':
    print(vj_problem_number('feng978744573'))